package cn.yzfy.common.model.vo;

import cn.yzfy.common.base.vo.BaseIdAndTimeVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 一朝风月
 * @date 2025/9/11 20:00
 * @Code 面向注解面向卿，终无解释再无你
 * @description
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RolePageQueryListItemVO extends BaseIdAndTimeVO {

    @Serial
    private static final long serialVersionUID = 2264364149067433513L;

    /**
     * 图标
     */
    @Schema(description = "图标")
    private String icon;

    /**
     * 角色名称
     */
    @Schema(description = "角色名称")
    private String name;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 启用状态
     */
    @Schema(description = "启用状态")
    private Boolean enable;

    /**
     * 角色编码
     */
    @Schema(description = "角色编码")
    private String code;

    /**
     *
     */
    @Schema(description = "权限id集合")
    private List<Long> permissionIds = new ArrayList<>();

    @Schema(description = "权限id字符串拼接逗号分割")
    private String resourcesIds;
}